class basepeople(object):
      def __init__(self, name, age):
        self.name=name
        self.__age=age
      def printinfo(self):
          print(self.name,':',self.__age)
      def get_age(self):
             return self.__age
      def set_age(self,age):
            if age<0:
                raise  ValueError('年龄不能小于0')
            self.__age=age
class people(basepeople):
    count=0
    def __init__(self, name, age):
        people.count=people.count+1
        super().__init__(name,age)
        print('当前总人口：%s' % people.count)

   

class Student(object):
    def __init__(self, name, score):
        self.name = name
        self.score = score
    def print_score(self):
        print('%s: %s' % (self.name, self.score))

class Chinese(basepeople):
    def __init__(self, name, age,isc):
        if not isinstance(isc,bool):
            raise TypeError('isc is not bool')
        super().__init__(name,age)
        self.isc=isc
    def printinfo(self):
        super().printinfo()
        print('是否是党员:%s' % self.isc)
class Screen(object):
   
    def __init__(self, width=0, height=0):
        self._width=width
        self._height=height
    def __str__(self):
        return 'Screen(object):(width:%s height:%s)' % (self._width,self._height)
    @property
    def width(self):
        return self._width
    @width.setter
    def width(self,value):
        self._width=value
    @width.deleter
    def width(self):
        raise PermissionError('不允许删除')
    @property
    def height(self):
        return self._height
    @height.setter
    def height(self,value):
        self._height=value
    @property
    def resolution(self):
        return self._width*self._height
class china(object):
    def __init__(self,path=''):
        self._path=path
    def __getattr__(self,path):
        return china(self._path+'/'+path)
    def __str__(self):
        return self._path
    def __call__(self,path=''):
        return china(self._path+'/'+path)
    __repr__=__str__
from enum import *
@unique
class Weekday(Enum):
    Sun=0
    Mon=1
    Tue = 2
    Wed = 3
    Thu = 4
    Fri = 5
    Sat = 6
class sss(object):
    def __init__(self, weekday):
        if not isinstance(weekday,Weekday):
            raise TypeError('weekday is not '+type(Weekday))
        self._weekday=weekday